﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="CostCharge.aspx.cs" Inherits="PMSWeb_CostCharge" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
<asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
<div class="searchDiv" >
   <table cellspacing="0" class="searchTable">
    <tr>
        <td>
        楼号区域：
        </td>
        <td>
        <asp:TextBox ID="tbHouseNo" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
        </td>
        <td>
        房间号：
        </td>
        <td>
        <asp:TextBox ID="tbRoomNo" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
        </td>
        <td>
            &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 " 
            ValidationGroup="submit" CssClass="searchButton" />
        </td>
    </tr>
    </table>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbHouseNo"
    Display="None" ErrorMessage="请输入楼号区域" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbRoomNo"
    Display="None" ErrorMessage="请输入房间号" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableViewState="False"
    ShowMessageBox="True" ShowSummary="False" ValidationGroup="submit" />    

</div>
<div class="webPanelBorder" >
    <div class="webPanelCaption">收费项管理</div>
    <div class="webPanelContent"> 
        <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
            OnRowDataBound="gridView_RowDataBound" 
            OnRowCommand="gridView_RowCommand"
            onsplitpageindexchange="gridView_SplitPageIndexChange">
            <Columns>
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>
                        <input ID="BillID" checked="checked" name="BillID" type="radio" 
                            value='<%#DataBinder.Eval(Container.DataItem,"BillID")%>' />
                    </ItemTemplate>
                    <HeaderStyle Width="40px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="收费单名称">
                <ItemTemplate>
                      <asp:LinkButton ID="btnView" runat="server" CommandName="btnView_Click" 
                        CommandArgument='<%#DataBinder.Eval(Container.DataItem,"BillID").ToString()%>'>
                        <%#DataBinder.Eval(Container.DataItem, "Subject").ToString()%>
                        </asp:LinkButton>
                </ItemTemplate>
                 </asp:TemplateField>
                <asp:BoundField DataField="BillDate" HeaderText="收费日期" />
                <asp:BoundField DataField="UserCount" HeaderText="收费客户数" />
                <asp:BoundField DataField="ShouFei" HeaderText="收费金额" />
                <asp:BoundField DataField="QianFei" HeaderText="欠费金额" />
            </Columns>
        </ofcc:GridView>
     </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click" CssClass="linkButton" >收费登记</ofcc:LinkButton>
</div>
</asp:Panel>


<asp:Panel ID="pnlEdit" runat="server" Width="700px" Visible="false" CssClass="centerPanel">
<div class="webPanelBorder" >
    <div class="webPanelCaption">收费项管理(欠费请输入负数金额)</div>
    <div class="webPanelContent">
        <table cellspacing="1" class="table">
            <tr>
                <td class="tableSubjectWidth">收费单名称：
                </td>
                <td colspan="3"><asp:Literal ID="lbSubject" runat="server"></asp:Literal>
                    <ofcc:RequiredField ID="RequiredField1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>楼号区域：</td>
                <td><asp:Literal ID="lbHouseNo" runat="server"></asp:Literal>
                </td>
                <td class="tableSubjectWidth">房间号：</td>
                <td><asp:Literal ID="lbRoomNo" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td><asp:Literal ID="lbTelephone" runat="server"></asp:Literal>
                </td>
                <td>缴费日期：</td>
                <td><asp:Literal ID="lbBillDate" runat="server"></asp:Literal>
                </td>
            </tr>
            <asp:Literal ID="lbCostItem" runat="server"></asp:Literal>
        </table>
    </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnSave" runat="server" OnClick="btnSave_Click" CssClass="linkButton" >保存</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_Click"  CssClass="linkButton">取消</ofcc:LinkButton>
</div>
<asp:HiddenField ID="hfAddOrEdit" runat="server" />
<asp:HiddenField ID="hfBillID" runat="server" />
</asp:Panel>
</asp:Content>

